package com.ruoyi.system.domain.module.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 商家的管理用户wxuser的用户对象 estate_user
 *
 * @author ruoyi
 * @date 2022-04-27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate_user")
public class EstateUser implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 小区id
     */
    private Integer estateId;

	private Long deptId;

    /**
     * 微信用户id
     */
    private Integer userId;

    /**
     * 管理员id
     */
    private Long sysUserId;

    /**
     * 微信昵称
     */
    private String nickName;

    /**
     * 用户类型
     */
    private Integer userType;

    /**
     * 添加时间
     */
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 0 - 禁用 1 - 可用
     */
    private Integer state;
	private String imgUrl;

	/**
	 * 是否是经理 （负责人）    1 -  是  0 - 否
	 */
	private Integer isManager;

	@TableField(exist = false)
	private String sysUserName;
	@TableField(exist = false)
	private String sysNickName;
//	@TableField(exist = false)
//	private String userName;
	@TableField(exist = false)
	private String wxUserName;
	@TableField(exist = false)
	private String faceUrl;
	@TableField(exist = false)
	private Integer eventType;
	@TableField(exist = false)
	private String deptName;
	@TableField(exist = false)
	private String estateName;
	@TableField(exist = false)
	private String phoneNum;
	@TableField(exist = false)
	private String password;
	@TableField(exist = false)
	private String email;
	@TableField(exist = false)
	private String sex;
	@TableField(exist = false)
	private String remark;

	/**
	 * 民族
	 */
	private String minzu;

	/**
	 * 政治面貌
	 */
	private String zhengzhi;

	/**
	 * 居住地址
	 */
	private String address;

	/**
	 * 身份证号
	 */
	private String idCard;

	/**
	 * 健康状况
	 */
	private String jiankang;

	/**
	 * 个人经历
	 */
	private String jingli;

	/**
	 * 婚姻状况 0-未婚 1-已婚 2-保密
	 */
	private Long hunyin;

	/**
	 * 特长
	 */
	private String techang;

	/**
	 * 入职时间
	 */
	private String employmentTime;

}
